/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-10-20 17:48:29
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-10 16:02:20
 */
const Key = 'k_token'
const Key2 = 'head_url'

export function getToken() {
    return sessionStorage.getItem(Key)
}

export function setToken(token) {
    return sessionStorage.setItem(Key, token)
}

export function removeToken() {
    return sessionStorage.remove(Key)
}

// 获取头像
export function getHeadUrlToken() {
    return sessionStorage.getItem(Key2)
}

export function setHeadUrlToken(token) {
    return sessionStorage.setItem(Key2, token)
}

const IsRemember = 'IsRemember'
// 本地储存
export function setIsRemember(info) {
    return localStorage.setItem(IsRemember, info)
}

export function getIsRemember() {
    return localStorage.getItem(IsRemember)
}

export function getSessionInfo() {
    return sessionStorage.getItem(IsRemember)
}

export function setSessionInfo(info) {
    return sessionStorage.setItem(IsRemember, info)
}

export function delSessionInfo() {
    return sessionStorage.removeItem(IsRemember)
}

